def filter_ignorn_file(files,rules=()):
    # raise Exception("Error,the filter was not finished")
    return files

def filter_dot_file(files):
    '''
    本函数为一个过滤器,
    :param files:
    :return:
    '''
    res = []
    for filename in files:
        if filename[0] != '.':
            res.append(filename)
    return res


filter_list = {
    'dot':filter_dot_file,
    'ignorn':filter_ignorn_file,
}